right

 

Left and right turn a turtle a certain number of degrees to the left or right, respectively. The number following left/right is the number of degrees the turtle will rotate. For example, ask turtles [ left 90 ] will rotate the turtles a quarter of a turn to the left, and ask turtles [ right 90 ] will rotate the turtles a quarter of a turn to the right. If the number is negative, the turtle will turn the opposite way (a negative number for left will turn the turtle to the right, and vice versa).

 

Try it Yourself

 
 
 
 
 
 
 

What's next?

Once you mastered the right primitive, don't stop there. Check out the resources below to improve your NetLogo skills.

 
Published NetLogo models that use the right primitive:
 
 
Similar primitives:
left

Turn a certain amount of degrees to the left.

Read more
towards

Reports the angle of the caller towards an agent.

Read more
face

Turn to face a specific agent.

Read more
 
Learn another primitive